<?php
/**
 * @var $this RegistrationController
 * @var $model Customer
 * @var $form TbActiveForm
 */
?>
<div class="breadcrumb clearfix">
    <a href="#">Right Choice</a><span>Tạo tài khoản</span>
</div>
<div class="login-div container">
    <h3 class="block-title"><?php echo isset($this->pageTitle) ? $this->pageTitle : Yii::app()->name; ?></h3>

    <div class="ruler">
    </div>
    <div class="span4 center mb-40">
        <?php $form = $this->beginWidget('CActiveForm', array(
            'id' => 'customer-form',
            'enableAjaxValidation' => true,
            'enableClientValidation' => true,
            'htmlOptions' => array(
                'class' => 'form-login',
            ),
        )); ?>

        <?php echo $form->errorSummary($model); ?>
        <div class="control-group">
            <?php echo $form->label($model, 'gender', array('class' => 'control-label')); ?>

            <?php echo $form->radioButtonList($model, 'gender', array('0' => 'Mr ', '1' => 'Ms', '2' => 'Miss'),
                array('labelOptions' => array('style' => 'display:inline'),
                    'separator' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
                )
            );?>
        </div>
        <div class="control-group">
            <?php echo $form->label($model, 'username', array('class' => 'control-label')); ?>
            <?php echo $form->textField($model, 'username'); ?>
        </div>
        <div class="control-group">
            <?php echo $form->label($model, 'email', array('class' => 'control-label')); ?>
            <?php echo $form->textField($model, 'email'); ?>
        </div>
        <div class="control-group">
            <?php echo $form->label($model, 'phone', array('class' => 'control-label')); ?>
            <?php echo $form->textField($model, 'phone'); ?>
        </div>
        <div class="control-group">
            <?php echo $form->label($model, 'password', array('class' => 'control-label')); ?>
            <?php echo $form->passwordField($model, 'password'); ?>
        </div>
        <div class="control-group">
            <?php echo $form->label($model, 'news_lettter', array('class' => 'control-label')); ?>
            <?php echo $form->checkBox($model, 'news_lettter'); ?> Sign up for our newsletter!<br>
            <?php echo $form->label($model, 'deal_day', array('class' => 'control-label')); ?>
            <?php echo $form->checkBox($model, 'deal_day'); ?>  I wish register to Deal of the Day<br>
        </div>
        <?php echo CHtml::submitButton('Register', array('class' => 'btn btn-large btn-danger', 'style' => 'width: 120px; border-radius: 10px;')); ?>
        <?php $this->endWidget(); ?>
    </div>
</div>
